package com.code.Mapper;

import com.code.Entity.Role;
import com.code.Entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * Created by alison on 17-11-2.
 */

public interface UserMapper {

    List<User> getAll();

    User findByUsername(@Param("username") String username);

    User findById(@Param("id") Integer id);

    List<Role> findRolesByUsername(@Param("username") String username);


}
